function GetLog_Report() {

    var store = new Ext.data.JsonStore({
        fields: [{name: 'year'},{name: 'x'}],
        data: [
        {year: '00:00',x: 50},
        {year: '01:00',x: 50},
        {year: '02:00',x: 30},
        {year: '03:00',x: 40},
        {year: '04:00',x: 50},
        {year: '05:00',x: 60},
        {year: '06:00',x: 70},
        {year: '07:00',x: 80},
        {year: '08:00',x: 80},
				{year: '09:00',x: 50},
        {year: '10:00',x: 30},
        {year: '11:00',x: 40},
        {year: '12:00',x: 50},
        {year: '13:00',x: 60},
        {year: '14:00',x: 70},
        {year: '15:00',x: 80},
        {year: '16:00',x: 80},
        {year: '17:00',x: 30},
        {year: '18:00',x: 40},
        {year: '19:00',x: 50},
        {year: '20:00',x: 60},
        {year: '21:00',x: 70},
        {year: '22:00',x: 80},
        {year: '23:00',x: 80}
        ]
    })

	var flowPanel = new Ext.Panel({
				width : 800,
				height : 600,
				region : 'center',
				layout : 'fit',
				split : true,

				items : {
					    xtype: 'stackedcolumnchart',
					    store: store,
					    xField: 'year',
					    xAxis: new Ext.chart.CategoryAxis({
					        title: '时间'
					    }),
					    yAxis: new Ext.chart.NumericAxis({
					        title: "日志"
					    }),
					    series: [{
					        displayName: "日志",
					        yField: 'x'
					    }],
					    chartStyle: {
					        padding: 10,
					        legend: {
					            display: 'right'
					        }
					    }
				},
				tbar : [{
							text : '统计条件',
							tooltip : '统计条件',
							iconCls : 'refresh',
							handler : function() {							
								LogReportSearchWindows(SearchReturn);
							}
						}]
			});
	function SearchReturn(data){
		var jsondata = Ext.util.JSON.decode(data);
		
	}

	return flowPanel;
}

function LogReportSearchWindows(SearchReturn){
	var Search = new Ext.form.FormPanel({
				frame : true,
				layout : 'form',
				region : 'center',
				xtype : 'fieldset',
				bodyStyle : 'padding:10px;',
				items : [{
							xtype : 'checkboxgroup',
							fieldLabel : '起始时间',
							name : 'start',
							id : 'start',
							columns : 2,
							vertical : true,
							items : [{
										xtype : 'datefield',
										name : 'startdate',
										id   : 'startdate',
										format: 'Y-m-d',
										value:'${startdate}'
									}, {
										xtype : 'timefield',
										name : 'starttime',
										id   : 'starttime',
										increment: 60,
										value:'00:00',
										format: 'H:i'
	
									}]
						},{
							xtype : 'checkboxgroup',
							fieldLabel : '结束时间',
							name : 'end',
							id : 'end',
							columns : 2,
							vertical : true,
							items : [{
										xtype : 'datefield',
										name : 'enddate',
										id   : 'enddate',
										format: 'Y-m-d',
										value:'${startdate}'
									}, {
										xtype : 'timefield',
										name : 'endtime',
										id   : 'endtime',
										increment: 60,
										value:'00:00',
										format: 'H:i'
									}]
						},{
										xtype: 'checkboxgroup',
										itemCls: 'x-check-group-alt',
										fieldLabel: '数据库',
										columns: 4,
										id:'db',
										name:'db',
										items: [
										{boxLabel: 'mysql', name: 'mysql',id:'mysql'},
										{boxLabel: 'mssql', name: 'mssql',id:'mssql'},
										{boxLabel: 'oracle', name: 'oracle',id:'oracle'},
										{boxLabel: 'informix', name: 'informix',id:'informix'},
										{boxLabel: 'db2', name: 'db2',id:'db2'}
										
										]
							}, {
								xtype : 'textfield',
								name : 'user',
								fieldLabel : '用户',
								anchor : '100%'
							}, {
								xtype : 'textfield',
								name : 'ip',
								fieldLabel : '客户端ip',
								anchor : '100%'
							}, {
								xtype : 'textfield',
								name : 'process',
								fieldLabel : '客户端进程',
								anchor : '100%'
							}, {
								xtype : 'textfield',
								name : 'table',
								fieldLabel : '表格',
								anchor : '100%'
							},{
										xtype: 'checkboxgroup',
										itemCls: 'x-check-group-alt',
										fieldLabel: '操作',
										columns: 4,
										id:'operate',
										name:'operate',
										items: [
										{boxLabel: 'select(选择)', name: 'select',id:'select'},
										{boxLabel: 'insert(插入)', name: 'insert',id:'insert'},
										{boxLabel: 'update(更新)', name: 'update',id:'update'},
										{boxLabel: 'delete(删除)', name: 'delete',id:'delete'},
										{boxLabel: 'truncate(删表)', name: 'truncate',id:'truncate'},
										{boxLabel: 'create(创建)', name: 'create',id:'create'},
										{boxLabel: 'grant(允许)', name: 'grant',id:'grant'},
										{boxLabel: 'drop(删对象)', name: 'drop',id:'drop'},
										{boxLabel: 'rollback(回滚)', name: 'rollback',id:'rollback'},
										{boxLabel: 'alter(改变)', name: 'alter',id:'alter'},
										{boxLabel: 'logout(登出)', name: 'logout',id:'logout'},
										{boxLabel: 'login(登录)', name: 'login',id:'login'},
										{boxLabel: 'call(过程)', name: 'call',id:'call'},
										{boxLabel: 'execute(执行)', name: 'execute',id:'execute'}
										]
							}, {
								xtype : 'textarea',
								name : 'context',
								fieldLabel : '关键字',
								anchor : '100%'
							}
						]

			});

	var searchWindows = new Ext.Window({
				layout : 'border',
				width : 600,
				height : 500,
				title : "查找",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'search',
				items : [Search],
				plain : true
			});
	searchWindows.addButton({
				text : "查找",
				handler : function() {
					var data = "{startdate:'" + Ext.get("startdate").getValue() + "',enddate:'" + Ext.get("enddate").getValue() + "',context:'" + Ext.get("context").getValue() + "'}";
					SearchReturn(data)
					searchWindows.close();
				}
			});
	searchWindows.addButton({
				text : '取 消',
				handler : function() {
					searchWindows.close();
				}
			});
	searchWindows.show();
}